<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>随意</title>
</head>
<body>
    <script>
        var patt=new RegExp("e");
        document.write(patt.test("the best things in life are free"));
        </script>
        </body>
</html>